package com.zhaoyizhe.mybatis.mapper;

import com.zhaoyizhe.mybatis.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoXMLMapper {

    List<UserInfo> queryUserInfos();

    List<UserInfo> queryUserInfoById(@Param("id") Integer id);

    Integer insertUserInfo(@Param("userInfo") UserInfo userInfo);

    Integer deleteUserInfo(@Param("id") Integer id);

    Integer updateUserInfo(@Param("userInfo") UserInfo userInfo);

    Integer insertByCondition(@Param("userInfo") UserInfo userInfo);

    List<UserInfo> selectByCondition(UserInfo userInfo);

    List<UserInfo> selectByCondition2(UserInfo userInfo);

    Integer updateByCondition(UserInfo userInfo);

}
